<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <style type="text/css">
        .main {
            width: 315px;
            height: 600px;
            margin: 100px auto;
        }

    </style>

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript" src="vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

</head>
<body>
<div id="app">
    <p>
        <el-divider><i class="el-icon-mobile-phone"></i>审核详情</el-divider>
    </p>
    <div class="main">

        <el-form :model="auditResult" status-icon :rules="rules" ref="auditResult" label-width="100px"
                 class="demo-ruleForm">

            <el-form-item label="审核结果" prop="state">
                <el-input style="width: 200px;" v-model="auditResult.bstate.state" readonly="readonly"></el-input>
            </el-form-item>

            <el-form-item label="原因" prop="reason">
                <el-input style="width: 200px;" v-model="auditResult.reason" readonly="readonly"></el-input>
            </el-form-item>

            <div style="text-align: center;">
                <button type="button" class="btn btn-primary" @click="addPic()">入驻</button>
            </div>

        </el-form>
    </div> <!--main-->
</div><!--app-->
<script>

    $.get("/cai/businessRegister/getState",function (backData) {
         app.auditResult=backData.data;
    });
    var app = new Vue({
        el: "#app",
        data: {
            auditResult:{}
        },
        methods: {
            addPic:function(){
                if (app.auditResult.bstate.state == '通过') {
                    alert("您已通过审核，不用再入驻了");
                } else {
                    window.location.href = "/cai/businessIntoOne.html";
                }
            }
        }
    });



</script>

</body>
</html>
